When the active application signals its busy state, we now will show a
spinner on the panel, next to the application name.
https://bugzilla.gnome.org/show_bug.cgi?id=697207
}
if (targetApp == this._targetApp) {
- if (targetApp && targetApp.get_state() != Shell.AppState.STARTING) {
+ if (targetApp &&
+ targetApp.get_state() != Shell.AppState.STARTING &&
+ targetApp.get_state() != Shell.AppState.BUSY) {
this.stopAnimation();
this._maybeSetMenu();
+ } else if (targetApp &&
+ targetApp.get_state() == Shell.AppState.BUSY) {
+ this.startAnimation();
}
return;
}
this._iconBox.set_child(icon);
this._iconBox.show();
- if (targetApp.get_state() == Shell.AppState.STARTING)
+ if (targetApp.get_state() == Shell.AppState.STARTING ||
+ targetApp.get_state() == Shell.AppState.BUSY)
this.startAnimation();
else
this._maybeSetMenu();